package com.pro.common.api.pay.intf;

import com.pro.common.api.CommonConst;
import com.pro.common.api.intf.IPayFeignClient;
import com.pro.common.api.model.request.pay.PaymentRequest;
import com.pro.common.api.model.request.pay.PaymentResponse;
import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

//@Tag(name = "支付服务")
@FeignClient(name = CommonConst.ModulesUrl.pay)
@Hidden
public interface PaymentOrderFeignClient extends IPayFeignClient {
    @Override
    @PostMapping("/payment")
    @Tag(name = "发起支付")
    PaymentResponse payment(@RequestBody PaymentRequest paymentRequest);
}
